package com.atguigu.mall.product.feign;

import com.atguigu.common.to.SkuReductionTO;
import com.atguigu.common.to.SpuBoundsTO;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-coupon")

public interface CouponFeignService {
    /**
     * 保存spu 积分
     * @param spuBoundsTO
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody  SpuBoundsTO spuBoundsTO);

    /**
     * 保存sku 信息
     * @param skuReductionTO
     * @return
     */
    @PostMapping("/coupon/skufullreduction/saveFullInfo")
    R saveSkuReduction(@RequestBody  SkuReductionTO skuReductionTO);
}
